package com.situ.mvc.service.impl;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.mvc.entity.User;
import com.situ.mvc.mapper.IUserMapper;
import com.situ.mvc.service.IUserService;
import com.situ.mvc.utill.MyBatisUtil;


@Service
public class UserServiceImpl implements IUserService {
	@Autowired
	private IUserMapper userMapper ;

	
	
	
	
	@Override
	public User login(String name, String password) {
	//	SqlSession sqlSession = MyBatisUtil.getSqlSession();
		//userMapper = sqlSession.getMapper(IUserMapper.class);
		return userMapper.login(name, password);
	}

}
